<%@ page
	 import="merlin.beans.*,merlin.dao.*,merlin.managers.*,merlin.servlets.*,merlin.utils.*"
	contentType="text/html;charset=windows-1252"
%>

<html>
  <head>
	<meta HTTP-EQUIV="Cache-Control"  CONTENT="no-cache" />
	<meta HTTP-EQUIV="Expires"        CONTENT="1 Jan 1980" />
	<meta HTTP-EQUIV="MaxAge"         CONTENT="0" />
	<meta HTTP-EQUIV="Pragma-Control" CONTENT="no-cache" />

    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>Industry Watch</title>
    <script>
    	function submitForm(frm,mode){
    		frm.action = 'iwMainPage.jsp';
    		frm.submit();
    	}

		function submitForReregistration(frm){
    		frm.submit();
    	}
    </script>
  </head>
  <body onload="document.frm.btnReregister.focus()">

  	<jsp:include page="mr_header.jsp"/>
	<div style="height:3.0cm;">
	</div>
	<div align='center' style="height:15px;">
	</div>
	<p>
	</p>
	<form name="frm" method="post" action="merlin">

		<input type="hidden" name="mode" value="IWReRegistration">
		<input type="hidden" name="hidEmailAddress" value='<%= session.getAttribute("emailAddress") %>' >
		<input type="hidden" name="emailFrom" value="Existing Industry Watch Customer Re-registration">

		<table align="center" width=50%" border="0"> <!-- style="background-color:rgb(146,207,100);font-family:tahoma;" -->
			<tr>
				<td colspan="2" align="center" style='color:white;height:23px;font: 11px verdana,arial, sans-serif ;background:url("mr_images/Long-Bar-green.jpg") no-repeat' >
					<h4>Industry Watch</h4>
				</td>
			</tr>
			<tr>
				<%
					Boolean bObj =(Boolean)request.getAttribute("subscription.expired");
					boolean hasExpired = false;
					if(bObj != null && bObj == Boolean.TRUE){
						hasExpired = true;
				%>
				<td colspan="1" style='font:11px verdana,arial,sans-serif;'>
					 &nbsp;Your subscription has expired.<br>
					 &nbsp;Do you wish to re-register now ?
					 <br>&nbsp;
				</td>

				<%
					}else{
				%>
				<td colspan="1" style='font:11px verdana,arial,sans-serif;'>
					 &nbsp;Your subscription is about to expire on <%=request.getAttribute("subsEndDate") %>.<br>
					 &nbsp;Do you wish to re-register now ?
					 <br>&nbsp;
				</td>
				<%
					}
				%>
			</tr>
			<tr>
				<td colspan="1" align="center">
					<input type="button" name="btnReregister" value="Re-register Now !" style="margin-right:20px;font: 11px verdana,arial, sans-serif ;" onclick="submitForReregistration(this.form)">
					<input type="button" name="btnContinue" value="Later" style="margin-right:20px;font: 11px verdana,arial, sans-serif ;" onclick='<%= hasExpired ? "document.location=\"" + ApplicationResources.getInstance().getProperty("homepage.url") +"\"": "submitForm(this.form,\"mainFrame\")"%>'>
				</td>
			</tr>
		</table>
	</form>
	<div style="height:2.0cm;">
	</div>
	<jsp:include page="mr_footer.jsp"/>
  </body>
</html>